<template>
  <div class='container'>
    <el-dialog title="题目审核" :visible.sync="dialogVisible" width="25%" :before-close="handleClose">
      <el-radio-group v-model="qcheckData.chkState">
        <el-radio :label="1">通过</el-radio>
        <el-radio :label="2">拒绝</el-radio>
      </el-radio-group>
      <el-input type="textarea" :autosize="{ minRows: 1, maxRows: 5}" placeholder="请输入审核意见"
        v-model="qcheckData.chkRemarks">
      </el-input>
      <span slot="footer" class="dialog-footer">
        <el-button @click="downDialog">取消</el-button>
        <el-button type="primary" @click="saveDialog">确认</el-button>
      </span>
    </el-dialog>

  </div>
</template>

<script>
export default {
  props: ['dialogVisible', 'qcheckData'],
  data () {
    return {

    }
  },
  methods: {
    // 点击对话框取消触发
    downDialog () {
      this.$emit('qcheckdownDialog')
    },
    handleClose () {
      this.$emit('qcheckdownDialog')
    },
    // 点击确定
    saveDialog () {
      // console.log(this.formData)
      this.$emit('qcheckDialog')
    }
  }
}
</script>

<style scoped lang='less'>
.el-radio-group {
  margin-bottom: 20px;
}
</style>
